<template>
  <div class="home-container">
    <h3>Home 组件</h3>
    <hr>
    <button @click="gotoLK">通过push跳转到“洛基”页面</button>
    <button @click="gotoLK2">通过replace跳转到“洛基”页面</button>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods:{
    gotoLK(){
      this.$router.push('/movie/1');
    },
    gotoLK2(){
      this.$router.replace('/movie/2');
    }
  }
}
</script>

<style lang="less" scoped>
.home-container {
  min-height: 200px;
  background-color: pink;
  padding: 15px;
}
</style>
